@include('header')
@include('template.banner')
<div class="container same-padding">


    <div class="sub-nav-box">
        <div class="tit">
            新闻中心 / <span>News</span>
        </div>
        <div class="en-tit">随时了解法律动态</div>
        <div class="sub-nav visible-md hidden-sm hidden-xs" id="subNav">
        </div>
    </div>
    <script type="text/javascript">
        var $subNav = $("#subNav");
        $subNav.children("ul").find("li").InitNav(167);
        $subNav = $("#subNav");
        $subNav.find("li[data-id='167']").addClass("active");
        var $subLis = $subNav.find("li");
        var $subLi = $subNav.find("li[data-id='167']");
        $subLis.each(function () {
            var $this = $(this);
            $this.children("a").on("mouseenter", function () {
                $subLis.removeClass("active");
                $this.addClass("active");
            })
        });
        $subNav.on("mouseleave", function () {
            $subLis.removeClass("active");
            $subLi.addClass("active");
        })
    </script>


    <ul class="home-answer">
        @foreach($items as $item)
            <li>
                <div class="title">
                    <a href="{{route('news-detail', ['id' => $item['id']])}}" title="{{$item['title']}}">{{$item['title']}}</a>
                </div>
                <div class="date">{{date('Y-m-d', strtotime($item['created_at']))}}</div>
            </li>
        @endforeach
    </ul>

    <div class="text-center padding-20">
       {{$items->links()}}
    </div>

</div>


@include('bottom')
